package com.letoken.platform.repo.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.app.po.AppFundRankInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-09-13
 */
public interface AppFundRankInfoMapper extends BaseMapper<AppFundRankInfo> {

    @Select("select * from app_fund_rank_info where id =1 for update")
    AppFundRankInfo getRankInfoForupdate();

    //@Update("UPDATE app_fund_ranking set  type=2  where  create_time < #{endTime}")
    void updateType();
}
